<?php
namespace Home\Controller;
use Think\Controller;
use Think\Page;

class AboutController extends CommonController {

	public function contact(){

		$art = M('Article');
  		$art = $art->where('status=0 and category_id = 1 ')->find();
  		$this->assign('article',$art);
		
		$this->display('About/contact');
	}


	public function about(){
		$art = M('Article');
  		$art = $art->where('status=0 and category_id = 2 ')->find();
  		$this->assign('article',$art);
		$this->display('About/about');
	}

}